// 拆出来 是为了后期维护特定的路由规则方便
import Layout from '@/layout'
// 任务管理
export default {
  path: '/taskCenter',
  component: Layout,
  redirect: '/taskCenter/MainTaskPage',
  name: 'taskCenter',
  alwaysShow: true,
  meta: {
    title: 'taskCenter',
    icon: 'el-icon-coin',
    // noCache: true,
    affix: false
  },
  children: [
    {
      path: 'MainTaskPage',
      component: () => import('@/views/task-page/main-task.vue'),
      name: 'MainTaskPage',
      meta: { title: 'MainTaskPage', icon: 'el-icon-link', affix: false,
        roles: [1, 'editor'] // you can set roles in root nav
      }
    },
    // {
    //   path: 'SubTaskPage',
    //   component: () => import('@/views/task-page/sub-task.vue'),
    //   name: 'SubTaskPage',
    //   meta: { title: '子任务管理', icon: 'el-icon-link', affix: false }
    // },
    {
      path: 'TaskBakPage',
      component: () => import('@/views/task-page/task-bak.vue'),
      name: 'TaskBakPage',
      meta: { title: 'TaskBakPage', icon: 'el-icon-link', affix: false }
    }
  ]
}
